package project.vip.utils;

import java.io.IOException;
import java.util.Properties;


/**
 * Kenshinbo@163.com的属性配置
/**
 * @author Administrator
 *
 */
public class KBProperties {
	public static String CLASSPATH = "kb.properties";
	/**
	 * 全局http http://www.mrshine.cn/sjcf_root
	 */
	public static String sjcfHttp = "";
	/**
	 * 礼品卡 衬衫礼品卡 10 ＝ 500
	 */
	public static String sjcfGiftCardTpe10 = "";
	/**
	 * 礼品卡 西装礼品卡 20 ＝ 5000
	 */
	public static String sjcfGiftCardTpe20 = "";
	public static boolean isTest = false;
	public static float sjcfGiftCardTimeout = 0.5f;
	/**
	 * 银卡会员价格
	 */
	public static double vip20Price = 1000.0;
	/**
	 * 金卡会员价格
	 */
	public static double vip30Price = 4999.0;
	
	public static double vip50price = 1.0;
	public static Integer vip50invNum = 5;
	public static Integer vip50goldBt = 10;
	public static Integer vip50csTicket = 1;
	public static Integer vip50SmTicket = 1;
	
	static {
		Properties properties = new Properties();
		try {
			
			properties.load(KBProperties.class.getResourceAsStream(CLASSPATH));
			sjcfHttp = properties.getProperty("sjcf.http");
			sjcfGiftCardTpe10 = properties.getProperty("sjcf.giftCard.type10");
			sjcfGiftCardTpe20 = properties.getProperty("sjcf.giftCard.type20");
			isTest = new Boolean(properties.getProperty("is.test"));
			sjcfGiftCardTimeout = new Float(properties.getProperty("sjcf.giftCard.timeout"));
			vip20Price = new Double(properties.getProperty("sjcf.vip.vip20Price"));
			vip30Price = new Double(properties.getProperty("sjcf.vip.vip30Price"));

			
			vip50price = new Double(properties.getProperty("sjcf.vip.vip50.price"));
			vip50invNum = new Integer(properties.getProperty("sjcf.vip.vip50.invNum"));
			vip50goldBt = new Integer(properties.getProperty("sjcf.vip.vip50.goldBt"));
			vip50csTicket = new Integer(properties.getProperty("sjcf.vip.vip50.csTicket"));
			vip50SmTicket = new Integer(properties.getProperty("sjcf.vip.vip50.smTicket"));
			
			} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	public static void main(String[] args) {
		System.out.println(KBProperties.isTest);
	}
}
